﻿using SachOnlineLibrary.BLL;
using SachOnlineLibrary.Public;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UC_USER_UC_ChiTietSach : System.Web.UI.UserControl
{
    Sach sach = new Sach();
    SachBLL lib = new SachBLL();
    public string duongdan;
    List<Sach> listchitietsach = new List<Sach>();
    protected void Page_Load(object sender, EventArgs e)
    {
        listchitietsach = lib.LietKeChiTietSach(Request.QueryString[0]);       
        DataList1.DataSource = listchitietsach;
        DataList1.DataBind();
    }
    protected void ImageButton1_Click1(object sender, ImageClickEventArgs e)
    {
        ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", "alert('Bạn chưa đăng nhập, Mời bạn đăng nhập.');location.href='default.aspx';", true);
    
    }
}